#!/bin/python3

# -*- coding: utf-8 -*-

import random
import time



class Map(object):

    def __init__(self, seed=None):
        self.seed = seed
    
    def generate(self):
        if not self.seed:
            self.seed = time.time()
        random.seed(self.seed)
        if len(self.map_pool) == 0:
            raise Exception("No map in map pool")
        return random.choice(self.map_pool)
